
import BaseView from "./baseView.js";
import Two from "./two.js";
export default class One extends BaseView{

    renderCss(){
      //添加css文件
      $("head").append('<link rel="stylesheet" type="text/css" href="css/one.css">')
    }
    
    render(){
        this.$el.html(
            ` <div class='out'>
                <p class ='inner'>显示页面的内容</p>
                <button id='btn' type='button'>跳转页面二</button>
              </div> 
            `
        )
    }

    handle(){
        $("#btn").click(()=>{
            new Two("app");
        })
    }
}

new One("app");